-
Notifications
You must be signed in to change notification settings - Fork 3
Status is OK #1
Comments
what are the contents of /usr/local/nagios/cisco_configs/10.15.222.55? |
ls -l /usr/local/nagios/cisco_configs/10.15.222.55total 0 cat /usr/local/nagios/cisco_configs/10.15.222.55/10.15.222.55-confg-currentOutput of 10.15.222.55-confg-current always empty. |
Looks like your configuration is not making it to the tftp server. Can you test manually sending your running config to the tftp server? From your 2960, copy running-config tftp and see what happens. |
Hmm.. When I try to copy cfg I receive timeout. I can see these messeges in /var/log/messages: |
Yes! It's works! I just changed config tftp to this: |
Awesome. I need to add some logic to detect empty and incomplete files. |
Hey, thanks for the Script! Any news on "I need to add some logic to detect empty and incomplete files."? |
@virusmoere I haven't been using this plugin for a while, but i could give you some direction on this if you're comfortable implementing. I haven't tested this, but have done something similar in another script to parse the last line of a file. in sub tftp_config add the following after the line with sleep (20);
|
Hi! You created very intresting plugin for Nagios. I installed your plugin exactly as you discribed in readme file. All nessesary perl modules installed too. My enviroment is Centos 5.9 i386, switch Cisco 2960 and check_cisco_config v.0.3. However when I execute the command I receive "Status is OK" all times:
./check_cisco_config.pl -H 10.15.222.55 -C snmpsecret -I 10.15.2.2 -T running -L /usr/local/nagios/cisco_configs -l /usr/local/nagios/tftp
Status is OK
Even I make changes in switch configuration and repite command I receive the same status! Here is content of folders:
ls -l /usr/local/nagios/cisco_configs/
total 4
drwxrwxrwx 2 nagios nagios 4096 Oct 31 21:59 10.15.222.55
ls -l /usr/local/nagios/tftp/
total 0
When I tried to use check_cisco_config v.0.2 I recieved:
TFTP transfer timed out after 30 seconds
Could you please ask how to resolve ?
Best regards, Yury
The text was updated successfully, but these errors were encountered: